﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Main.UI.Components.FileMenuItems
{
    public partial class OpenFileMenuItem : UserControl, IFileMenuItem
    {
        public OpenFileMenuItem()
        {
            InitializeComponent();
        }

        public override string Text { get { return "Open"; } }

        public Type ShouldBeDisplayedAbove
        {
            get { return typeof(MenuItemConstants.Any); }
        }

        public Type ShouldBeDisplayedBelow
        {
            get { return typeof(InfoFileMenuItem); }
        }

        public bool IsEnabled()
        {
            return true;
        }

        public void Adjust(Visibility value)
        {
            if (value == Visibility.Show)
            {
                this.Show();
            }
        }
    }
}
